import request from '@/utils/request'

// 查询烟草分类占比报告列表
export function listCategorySaleReport(query) {
  return request({
    url: '/energize/categorySaleReport/list',
    method: 'get',
    params: query
  })
}

// 查询烟草分类占比报告详细
export function getCategorySaleReport(autoId) {
  return request({
    url: '/energize/categorySaleReport/' + autoId,
    method: 'get'
  })
}

// 新增烟草分类占比报告
export function addCategorySaleReport(data) {
  return request({
    url: '/energize/categorySaleReport',
    method: 'post',
    data: data
  })
}

// 修改烟草分类占比报告
export function updateCategorySaleReport(data) {
  return request({
    url: '/energize/categorySaleReport',
    method: 'put',
    data: data
  })
}

// 删除烟草分类占比报告
export function delCategorySaleReport(autoId) {
  return request({
    url: '/energize/categorySaleReport/' + autoId,
    method: 'delete'
  })
}
